package com.yonyou.cyxdms.sysAuth.service.feign;

import com.yonyou.cyx.framework.bean.dto.framework.RestResultResponse;
import com.yonyou.cyxdms.framework.config.FeiginHeaderConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "clue-service", configuration = FeiginHeaderConfig.class)
public interface CustomerService {

    @GetMapping(value = "/potenCus/queryHomeDataForSales", produces = {"application/json;charset=UTF-8"})
    public RestResultResponse<Map<String,Object>> queryForSalesHome(@RequestParam(name = "dealerCode") String dealerCode,
                                                                    @RequestParam(name = "appId") String appId);

    @GetMapping(value = "/customerManage/testdrivecars/queryDriveAddress", produces = {"application/json;charset=UTF-8"})
    public RestResultResponse<String> queryDriveAddress(@RequestParam("appId") String appId,
                                    @RequestParam("dealerCode") String dealerCode);
    
    /**
     * 人员状态是在职或者离职更新线索下发分配状态
     *
     * @return
     * @since zw
     */
    @GetMapping(value = "/consultantWork/updateConsultantWork", produces = {"application/json;charset=UTF-8"})
    RestResultResponse<Integer> updateConsultantWork(@RequestParam("userId") Integer userId);


}
